home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 November / Chip Kasım 2000.iso / prog / basic / 09 / AXA2.CAB / DAJAVA.CAB / com / ms / dxmedia / Behavior.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-10-14  |  2.9 KB  |  107 lines

  1. package com.ms.dxmedia;
  2.  
  3. import com.ms.com.ComFailException;
  4. import com.ms.dxmedia.rawcom.IDABehavior;
  5. import java.io.PrintStream;
  6.  
  7. public class Behavior {
  8.    private IDABehavior _COMBvrPtr;
  9.  
  10.    public Behavior bvrHook(BvrCallback var1) {
  11.       try {
  12.          return Statics.makeBvrFromInterface(this.getCOMBvr().Hook(new BvrCallbackCOM(var1)));
  13.       } catch (ComFailException var4) {
  14.          throw StaticsBase.handleError(var4);
  15.       }
  16.    }
  17.  
  18.    public IDABehavior getCOMBvr() {
  19.       return this._COMBvrPtr;
  20.    }
  21.  
  22.    void setCOMBvr(IDABehavior var1) {
  23.       this._COMBvrPtr = var1;
  24.    }
  25.  
  26.    public Behavior substituteTime(NumberBvr var1) {
  27.       return Statics.makeBvrFromInterface(this._COMBvrPtr.SubstituteTime(var1.getCOMPtr()));
  28.    }
  29.  
  30.    public Behavior repeat(int var1) {
  31.       try {
  32.          return Statics.makeBvrFromInterface(this.getCOMBvr().Repeat(var1));
  33.       } catch (ComFailException var4) {
  34.          throw StaticsBase.handleError(var4);
  35.       }
  36.    }
  37.  
  38.    public Behavior debug(String var1, boolean var2, PrintStream var3) {
  39.       return this.bvrHook(new DXMDebugCallback(var1, var2, var3));
  40.    }
  41.  
  42.    public Behavior debug() {
  43.       return this.debug("", false, System.out);
  44.    }
  45.  
  46.    public Behavior debug(String var1) {
  47.       return this.debug(var1, false, System.out);
  48.    }
  49.  
  50.    public Behavior(IDABehavior var1) {
  51.       this._COMBvrPtr = var1;
  52.    }
  53.  
  54.    public Behavior debug(String var1, boolean var2) {
  55.       return this.debug(var1, var2, System.out);
  56.    }
  57.  
  58.    protected Behavior newUninitBehavior() {
  59.       throw new DXMException(-2147024809, "illegal type for newUninitBehavior");
  60.    }
  61.  
  62.    public Behavior repeatForever() {
  63.       try {
  64.          return Statics.makeBvrFromInterface(this.getCOMBvr().RepeatForever());
  65.       } catch (ComFailException var3) {
  66.          throw StaticsBase.handleError(var3);
  67.       }
  68.    }
  69.  
  70.    public Behavior importance(double var1) {
  71.       try {
  72.          IDABehavior var3 = this._COMBvrPtr.Importance(var1);
  73.          return Statics.makeBvrFromInterface(var3);
  74.       } catch (ComFailException var5) {
  75.          throw StaticsBase.handleError(var5);
  76.       }
  77.    }
  78.  
  79.    public Object extract() {
  80.       throw new DXMException(-2147024809, "illegal type for extract");
  81.    }
  82.  
  83.    public Behavior duration(NumberBvr var1) {
  84.       try {
  85.          return Statics.makeBvrFromInterface(this.getCOMBvr().DurationAnim(var1.getCOMPtr()));
  86.       } catch (ComFailException var4) {
  87.          throw StaticsBase.handleError(var4);
  88.       }
  89.    }
  90.  
  91.    public Behavior duration(double var1) {
  92.       try {
  93.          return Statics.makeBvrFromInterface(this.getCOMBvr().Duration(var1));
  94.       } catch (ComFailException var5) {
  95.          throw StaticsBase.handleError(var5);
  96.       }
  97.    }
  98.  
  99.    public void init(Behavior var1) {
  100.       this._COMBvrPtr.Init(var1.getCOMBvr());
  101.    }
  102.  
  103.    public Behavior runOnce() {
  104.       return Statics.makeBvrFromInterface(this._COMBvrPtr.RunOnce());
  105.    }
  106. }
  107.